import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter);// 安装路由


import Index from "./components/index";
import ArticleList from "./components/Article-List";
import ArticleDetail from "./components/Article-Detail";
import DoctorDetail from "./components/Doctor-Detail";
import SinglePage from "./components/Single-Page";
import Doctors from "./components/Doctors";
import NoFound from "./components/404";
export const routes = [
    { path: '/', component: Index },
    { path: '/index', component: Index },
    { path: '/article-list/:category', component: ArticleList },
    { path: '/single-page/:category', component: SinglePage },
    { path: '/article-detail/:article_id', component: ArticleDetail },
    { path: '/doctors', component: Doctors },
    { path: '/doctor-detail/:doctor_id', component: DoctorDetail },
    { path: '/*', component: NoFound },
];
export const router = new VueRouter({
    routes,
});